package top.pmwly.web.controller;


import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import top.pmwly.common.reslut.ReslutBean;
import top.pmwly.service.ISysMenuService;

/**
 * <p>
 * 菜单权限表 前端控制器
 * </p>
 *
 * @author Herther
 * @since 2021-09-21
 */
@RestController
@RequestMapping("/system/menu")
public class SysMenuController {

    @Autowired
    private ISysMenuService menuService;

    @ApiOperation("根据用户ID查询菜单")
    @ApiOperationSupport(author = "Herther")
    @GetMapping("/getMenu")
    public ReslutBean getMenuById(){
        return menuService.getMenuById();
    }

}
